package com.chanzany.interview_primary;



public class StringEquals {
    public static void main(String[] args) {
        String s = new String("hello");
        String s2 = new String("hello");
        String s3 = "hello";
        System.out.println(s == s2);
        System.out.println(s == s3);
        System.out.println(s.intern() == s3);
        System.out.println(s.intern() == s3.intern());

    }
}
